<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
	<head>
		<title>管理首页</title>
		<meta name="decorator" content="default"/>
		<style type="text/css">
		.item {
		    position: relative;
		    height: 225px;
		    border: 1px solid #eaeaea;
		    background-color: white;
		    margin-top: 4px;
		    font-size:12px;
		}
		.item .item_title {
		    position: relative;
		    height: 30px;
		    line-height: 30px;
		    border-bottom: 1px solid #eaeaea;
		    width: 98%;
		    font-weight: bolder;
		    font-size:12px;
		    background-color: #F9F9F9;
		    padding-left:2%;
		}
		.item_title .itemBtn {
		    position: absolute;
		    top: 4px;
		    right: 10px;
		    font-weight: normal;
		}
		.border-table thead th{
			background: none;
		}
		.item table {
			margin-top:-1px;
			margin-left:-1px;
		}
		</style>
	</head>
	<body class="mainbody">
		<div class="line10"></div>
	  	<div class="nlist-1">
		  	<ul>
		    	<li>本次登录IP：127.0.0.1</li>
		    	<li>上次登录IP：127.0.0.1</li>
		    	<li>上次登录时间：2016-1-11 15:46:50</li>
		  	</ul>
	  	</div>
		<div class="line10"></div>
		<div class="nlist-2">
		  <h3><i></i>站点信息</h3>
		  <ul>
		    <li>站点名称：Q宝丁丁父母能量后台管理系统</li>
		    <li>公司名称：广州市合生元生物制品有限公司</li>
		    <li>网站域名：<a href="http://www.qdingding.com/">父母能量官方网站</a></li>
		    <li>安装目录：/</li>
		    <li  style="display: none;">网站管理目录：admin</li>
		    <li>附件上传目录：upload</li>
		    <li style="display: none;">服务器名称：AY130518163619Z</li>
		    <li  style="display: none;">服务器IP：121.199.8.204</li>
		    <li  style="display: none;">NET框架版本：4.0.30319.1008</li>
		    <li  style="display: none;">操作系统：Microsoft Windows NT 5.2.3790 Service Pack 2</li>
		    <li  style="display: none;">IIS环境：Microsoft-IIS/6.0</li>
		    <li>服务器端口：80</li>
		    <li  style="display: none;">目录物理路径：D:\web\wwwroot\dtcmsdemo4\</li>
		    <li>系统版本：v1.0.0</li>
		    <li  style="display: none;">升级通知：<a target="_blank" href="http://bbs.dtsoft.net/forum.php?mod=forumdisplay&amp;fid=2">点击升级4.0</a></li>
		  </ul>
		</div>
		<div class="line10"></div>
		<div class="item">
	        <div class="item_title">
	            <span>最新请假信息</span>
	            <div class="itemBtn">
	                <a href="javascript:void(0)" onclick="getTask('flash')">
	                    <img src="${ctxStatic }/admin/skins/default/refresh.png"></a>
	            </div>
	        </div>
	        <div>
				<table class="border-table" style="text-align: center">
					<thead>
						<tr>
							<th width="100" >宝宝姓名</th>
							<th width="100" >家长姓名</th>	
							<th width="100">联系方式</th>
							<th width="100">课程信息</th>
						</tr>
					</thead>
						<tbody>
					<c:forEach items="${courseOrders}" var="courseOrder">
						<tr>
							<td>${courseOrder.student.name }</td>
							<td>${courseOrder.member.name }</td>
							<td>${courseOrder.member.mobile }</td>
							<td>${courseOrder.course.clevel}${courseOrder.course.serial}&nbsp;<fmt:formatDate value="${courseOrder.course.ondate}"  pattern="MM-dd"/> &nbsp;${courseOrder.course.section} </td>
						</tr>
					</c:forEach>
				</table>
    		</div>	
	    </div>
        <div class="line10"></div>
        <div class="item">
	        <div class="item_title">
	            <span>最新扣费失败信息</span>
	            <div class="itemBtn">
	                <a href="javascript:void(0)" onclick="getTask('flash')">
	                    <img src="${ctxStatic }/admin/skins/default/refresh.png"></a>
	            </div>
	        </div>
	        <div>
				<table class="border-table" style="text-align: center">
					<thead>
						<tr>
							<th width="70" >宝宝姓名</th>
							<th width="70" >家长姓名</th>	
							<th width="70">联系方式</th>
							<th width="100">课程信息</th>
							<th width="70">当前状态</th>
						</tr>
					</thead>
						<tbody>
					<c:forEach items="${courseOrderList}" var="courseOrder">
						<tr>
							<td>${courseOrder.student.name }</td>
							<td>${courseOrder.member.name }</td>
							<td>${courseOrder.member.mobile }</td>
							<td>${courseOrder.course.clevel}${courseOrder.course.serial}&nbsp;<fmt:formatDate value="${courseOrder.course.ondate}"  pattern="MM-dd"/> &nbsp;${courseOrder.course.section} </td>
							 <td>
							    	<c:choose>
							    		<c:when test="${courseOrder.state == 'queuing'}">排队</c:when>
							    		<c:when test="${courseOrder.state == 'ordered'}">预约</c:when>
							    		<c:when test="${courseOrder.state == 'signed'}">签到</c:when>
							    		<c:when test="${courseOrder.state == 'absented'}">旷课</c:when>
							    		<c:when test="${courseOrder.state == 'leaved'}">请假</c:when>
							    		<c:when test="${courseOrder.state == 'canceled'}">取消</c:when>
							    		<c:when test="${courseOrder.state == 'aborted'}">中止</c:when>
						    		</c:choose>
						    	</td>
						</tr>
					</c:forEach>
				</table>
    		</div>	
	    </div>
	</body>
</html>
